package com.it.service.impl;

import com.it.dao.TagMapMapper;
import com.it.domain.TagMap;
import com.it.service.TagMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TagMapServImpl implements TagMapService {

    @Autowired
    private TagMapMapper tagMapMapper;


    @Override
    public Object UpdateMap(List<Integer> tagId, Integer targetType, Integer targetId) {
        return tagMapMapper.UpdateTagMap(tagId,targetType,targetId);
    }

    @Override
    public Integer AddTagMap(List<Integer> tagId, Integer targetType, Integer targetId) {
        return tagMapMapper.AddTagMap(tagId,targetType,targetId);
    }

    @Override
    public Integer DeleteTagMap(Integer SongListId) {
        return tagMapMapper.DeleteTagMap(SongListId);
    }

    @Override
    public List<Integer> SelectTagMap(Integer targetId,Integer targetType) {
        return tagMapMapper.SelectTagMap(targetId,targetType);
    }

    @Override
    public List<Integer> SelectByTagType(Integer targetType) {

        return tagMapMapper.SelectByTagType(targetType);
    }

    @Override
    public List<Integer> SelectMainTag(Integer targetType, Integer tagId) {
        return tagMapMapper.SelectMainTag(targetType,tagId);
    }

    @Override
    public List<TagMap> SelectListTag(Integer targetType, Integer targetId) {
        return tagMapMapper.SelectListTag(targetType,targetId);
    }
}
